<template>
  <el-form-item label="奖品库存">
    <template v-for="(item, index) in products">
      奖品{{toChineseNumber(index + 1)}}：{{item.stock}} <span v-if="index !== products.length - 1">&nbsp;|&nbsp;</span>
    </template>
  </el-form-item>
</template>

<script lang="ts" setup>
import { toChineseNumber } from "@/utils"

const props = defineProps<{
  products: []
}>()
</script>

<style scoped lang="scss">

</style>
